<%-- 
    Document   : error
    Created on : 17.11.2011, 14:37:17
    Author     : Дима
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" isErrorPage="true"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Error:</h1>
        <%= exception.getMessage() %> <br>
        Caused by: <%= exception.getCause() %>
        <br>
        <%
        StackTraceElement[] elements = exception.getStackTrace();
        for(int i = 0; i < elements.length; i++) { %>
        <%=elements[i].toString()%>
        <br>   <%
        } %>
    </body>
</html>
